/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package iteracon.stack;

/**
 * static factory for stack
 * @author martin
 */
public class Stack {
  /**
   * make new empty stack
   * @return new empty stack
   */
  public static Stk make(){
    return EmptyStk.makeStk();
  }
  /**
   * add new element to given stack
   * being immutable, this one return new version
   * @param <T> as type
   * @param s as current stack
   * @param t as new element
   * @return new stack with element added
   */
  public static<T> Stk addTo(Stk<T> s, T t){
    return s.push(t);
  }
}
